// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.core.utils;

public class UpdateTimer {
    private long time = 0L;

    public UpdateTimer() {
        this.time = System.currentTimeMillis() + 3800L;
    }

    public void reset(long _time) {
        this.time = System.currentTimeMillis() + _time;
    }

    public boolean check() {
        return this.time != 0L && System.currentTimeMillis() + 200L >= this.time;
    }

    public long getTime() {
        return this.time;
    }
}
